﻿@model List<Apps.Web.Model.selectmodel>
    @{ 
        Layout = null;
    }
<select id="@ViewBag.ControlID" name="@ViewBag.ControlName">
    @foreach(var item in Model)
    {
        if(item.value==ViewBag.SelectValue)
        {
            <option value="@item.value" selected="selected">@item.name</option>
        }
        else
        {
            <option value="@item.value">@item.name</option>
        }
    }
</select>